package com.zhan.ielts.dao;

import java.util.List;

import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;

import com.zhan.frame.core.dao.BaseDao;
import com.zhan.ielts.domain.Paragraph;
import com.zhan.ielts.domain.query.ParagraphQuery;
import com.zhan.ielts.domain.vo.ParagraphVo;

public interface ParagraphDao extends BaseDao<Paragraph> {

	public List<String> selectArticleType(Paragraph query);

	public List<Integer> selectBookNo(Paragraph query);

	public List<Integer> selectPaperNo(Paragraph query);

	public List<Integer> selectPassageNo(Paragraph query);

	public List<Integer> selectParagraphNo(Paragraph query);

	public PageImpl<ParagraphVo> selectPageListCustom(ParagraphQuery query, Pageable pageable);

	public List<Paragraph> selectSubtypePassage(ParagraphVo entity);

	public List<ParagraphVo> selectBySeqNo(ParagraphVo entity);

	public List<Paragraph> selectByFixedConditions(ParagraphVo entity);

	public void oneKeyUpdate();
}
